fix bug

- conf.getKeys needed to be re-assigned after the first loop.