Fixed serializeObject