fixed bugs on ios