Fixed issue with runtime of selection partitioning