fixed deref assertion of iterator