Fixed remembering last search issue

The new one has been introduced by merging the master into this branch.
built 0.4.5