ratio check bug fixed.