fixed client when require is defined but module isn't