Fix task endpoint