Fix a bug where multiple windows could get created

Which could cause cause infinite recursion when you tapped the screen.