fix dbKeys iteration