Fix Require bug, test in real env.