Fixed bug with update task