fixed team insertion not working