dont crash on invalid length prefix