fix type error in colleges foreach