Scaling problem fixed for quickselection