fix window getter