getPartitionPoint fixed