tried fixing npe on packet