Correct index in math primitives