Fixed bad detection of module variable.