removed rounding error when resizing