template fix for html5 target