Fixed restoring of text entered in search field