fixed bug add new task (see comment)