fixed bug with space bar