fix bug in sphere creation