fixed an problem about function revise to make it useful in ie