Fixing error on adding new task