overwrite mode fix,break mode fix