Fixed bug in update task