Fixed bug serialising wasAssociatedWith roles