Fix malformed packets and filter reception