crash fixed, if no mime-type is selected