Fixed allocation bug in BardEventWriter and BardEventReader.