fix issue #5353, convert rad to deg and back