fix window error