Fix getSlot while