Hearts boss Gary Locke says his side must improve in the final third after losing 1-0 in their Scottish Premiership opener to St Johnstone.