Fixed bug on rounding