fixed metadata query