fixed bug in id assignments when teams in middle of league were deleted