Fixed bug when new task is adding