fixed issue with blank loop number search