fixed homogeneous bug