Fixed task label not defined issue