fixing space bar issues