fixed mimetype ')' bug