fix issue with null on ios
fix issue with null on ios