Fixes checking for space