fix round logic