fixed search rendeing conditions