Fix webpage not updated after the task finishes.