Fixed math problem in predictDot