fixed spacebar problems