fixed rounding bug in copy/paste