What are you trying to do? groups[item.port|string] will try to find a inventory group called 900 but that doesn't exist.