Fixing bug causing some double values to fail validation