fixed serialization of styles after adding fields