Fix infinite loop with OIS 1.2.