Fixed compilation of spatial cube service.

Forgot to update this project when API of the Task class changed.