fix bug with the task invoke