Fixed a bug which caused advanced settings window to open twice.