Fixed bug of dup profile windows