fixed require bug