Add missing setSlot. Fix issue #377.