Fix task detail loading for new tasks