fix for rendering previous search