rounding fix by Paweł Kolega