solved team nil error