ugly temp fix for angle wrapping