Debug error in teamModel