Closes #782 . When doing a search, reset offset to 0