dirty fix for html5