fixed html5mode issues