Fix search page in public side. There is no user there.