Fix a bug in search jumping
Make search jumping smarter