fix bug window