fixed task complete edit condition