bug unterminate window cycle