fixed a require bug