iterator assignment fix