fixed the spacebar feature