Fix for if instead of while in the installer