Missed stuff for the math refactor

Signed-off-by: Aleksi Sapon <QcTechs@gmail.com>