         @_modules = (@_by_path[mpath] for mpath in order)
 
     _encode: ->
-        @_bundle_content = []
+        _contents = []
         if @coding_func?
             paths = {}
             for module in @_modules

        @_write_file(@hosting_map, @_stringify_json(@_create_hosting_map())) if @hosting_map?
        @_write_file(@index, @_create_index()) if @index?
        @_write_file(@appcache, @_create_appcache()) if @appcache?
        @_write_file(@bundle, @_bundle_content.join("")) if @bundle?

        @_print_stats() if @print_stats
        @cache.flush()

            version: packagejson.version
            hash_func: @hash_func
            modules: modules

        if @bundle
            filepath = path.resolve(@root, @bundle)
            relative = @_relativate(filepath)
            url = @_host_path(relative)

            bundle = 
                hash: @calc_hash(@_bundle_content)
                url: url

            @_manifest_content.bundle = bundle

        if @coding_func?
            @_manifest_content.decoder_func = @coding_func.name
