fix window call