Fixed math bug

Bug in new movement amounts in distance and in patches fixed.