ViewFrame: fix a bug with the search context