Angular calculation fix