fix createtask api call