Fix: support html5 mode