Fix bug with a media edition