Fixed create task bug