fix for packet parser