fixed a bug when finding by array of keys