fixed bug in HTML5 layout