fix bug on search pages