Fixing stupid error in math