fix require bug