minor fix to search pattern to make sure robot actually stops at the end