Fix tasks list refresh after a new task is added