Thank you for reporting this, this should be fixed now!
Weirdly this was caused by the round() function. After a certain point, it just makes the number negative, which caused chain reactions of chaos. I've removed the rounding so you can go a little longer before the numbers get weird