fixing rounding bug

https://twitter.com/anneskovchr/status/525955873018245120