Fixes parse_query_metadata() not casting value