Fixed Option Dialog

Using a while loop, the Option Dialog problem was fixed