Fix error of CustomPacket