fix search rendering issue