Fixed an issue with metrics (empty rows were taken into account and distorted percentile rankings).