fix crash for unrecognized frame