Fix serializing property in upper class