Fixed module check for strict mode.