fix for offset when searching.