fix multiple hasNext problem
nested withTransaction should not start transaction