fixed a bug (NPE) in logress_iter.