Fixed correct string compared 'finished'