fixing space creation error