fix degree calc