Fixed crash on spacebar