Attempt to fix PacketHandler casting