fixing the spaceapi