fixed issue in findPage number check