fixing the task calling issue