Fix window hiding when dropdown mode is disabled