Fix space invisible

As far as I can tell, this should fix #1145