adding modulo 3600 on text orientation

because 360 deg == 0 deg