fixed some bugs for ie