                     broken_query: true
                 return false
 
-            @profile = result.profile ? null
-            @state.profile = @profile
+            @ATN_profile = result.profile ? null
+            @state.ATN_profile = @ATN_profile
 
             if @index is @queries.length # @index was incremented in execute_portion
                 @state.query_result = result

                else
                    @$el.html @templates.wrapper content: @json_to_table @results
            else
                if not @results_array?
                    @results_array = []
                    @results_array.push @results
                @$el.html @templates.wrapper content: @json_to_table @results_array

            # Check if the keys are the same
            if @parent.container.state.last_keys.length isnt previous_keys.length

                @index++
                if rdb_query instanceof @TermBaseConstructor
                    @start_time = new Date()
                    @ATN_current_results = []

                    query_result = new QueryResult
                        profile: @state.options.profiler
