fixed maths error in addxxYY