fixed brain serialisation issue