fix a problem with getting multiple keys