Minor bug fixes in the media modal