Fix a bug calculating non-rotation window.
Fix a pursue bug.