fix minor error to window.h