fixed comping fail on ios.