fixed an error in TopkVals function