Fix history search and change git status