Fixed introduced bug in inline function due changed semantic of isValidInModule