Fixed error in Window class