fixed bug with twisted longitudes