Fixing missing round issue

Casting to int+0.5 should work just as well.