fixed candy class.