small fix for sphere generation