fixed for IE domready
fixed some bugs