Fix references to Spaces in ObjectsController