fixed task name check