Fixed forward and backward record functions to restore the match data
if a match is indeed found.
Bug fix for saving match data.