Fixed complete task api