Fixed bug in the media dialog.