Fixed search from history