Fixed the slot filling for loop