fix nullable media fields