Prevent open cursor error on findAll