Fix bug that causes search to not happen at start