Fix history bug where new searches don't reset marker back to the bottom of the stack