fix for a bug on space visibility