attempt to fix quantil computation error