Fixed search once bug