fixing double values