fixed increment numkeys bug