Fixed an iterator/list bug with the training group list