fixed crash packet check

Signed-off-by: perakerosenlund <Enigma1676@gmail.com>