inter-class bug fixed