fixing bug on storeTeamsProcedure