WSOTWO-87: Fixed bug with serialization of attributes