Fix some bugs on Chromium and IE