fixed task being added twice