fix demo on iOS