Fixed spacebar issue when Pia is hidden