Corrected error in spaceY