fixing sphere bug