fix the bug for convert data property, consider it can be null