Fixing bug for large message packets