Fix task loading API.