Fix some stuff in teams migrations