Bugfix in the getSlotName method