fix serializeData