Fixed a small issue with the metadata query - params weren't correctly given