fixed bug making quickselect pick one before