fix small glitch in array math