fix iOS run loop