Fixed enum serialization.