fix bad PES header length check