Fixed issue where rapidly clicking search would produce an exception