Fixed bug in spherical mapping