prevent exception on md filetypes