fixed findAllOpt bug