Closed #157 by checking if teamId is integer