Making sure that root is always window