fixed statsc when module is undefined but require is