Fix sample to fit new initialize method