fix bug in showing already searched results