fix to handle 360 deg from Daniele