increment key bug fixed