fixing SWF payload header processing