fixed findbypages's bug