Fixing rounding issue in safari