Fix for HTML5 mode.