fixed task completion issue