math fix in tpsrpmzrot