fixed issue with two consecutive searches