fixing HTML5 and Flash targets