$.metadata() fixes across plugins