fixed task adding & updating error