Fixed out of bounds exception when initializing resized slots.