fix get_space