partial key scan bug fixed