fixed check for composite module