Fixed simple serialization.