Fix update of tasks and event