fixed space creation bug