fix require bug in production.