Fix space logic.