Fix infinite alert on win