[PATCH] Fix empty team port bug