fix the header in swf generation