Fixed bug in teamlms