fixed a bug in getting multiple metas