fixed match ratio calc bug