Fixed a problem with an iterator in dynamic data