Remove undefined type from opt_target and opt_file