fix for editing media fields
fix for editing media fields