Fixing a synchronization problem on the SpaceRepository.