Fixing search window positioning