fix context window up problem