fixed having 2 windows issue