Fix iterator invalidation in hub.cc
Update License