Correction to angle computation