fix cpatch reload bug under firefox and ie