Fix serialization of isRelative field