corrected accessing type of media file in exception