Check window instead of this