Fixed onPacket method in NetworkManager