             # One callback to rule them all
             $(window).mousemove @handle_mousemove
             $(window).mouseup @handle_mouseup
+
+            @id_execution = 0
+
             @render()
 
         handle_mousemove: (event) =>

                            last_non_query: true
                        @results_view.render_error(@raw_queries[@index-1], error)
        
        rdb_global_callback: (error, cursor) =>
            if error?
                @.$('.loading_query_img').css 'display', 'none'
                @results_view.render_error(@raw_queries[@index-1], error)
                return false
            
            if @index is @queries.length # @index was incremented in execute_portion
                if cursor?
                    @saved_data.cursor = @cursor

                #TODO Check for empty array?
                if cursor?.hasNext?
                    @cursor = cursor
                    if cursor.hasNext() is true
                        @cursor.next @get_result_callback
                    else
                        @get_result_callback() # Display results
                else
                    # Save the last executed query and the last displayed results
                    @current_results = cursor

                    @saved_data.query = @query
                    @saved_data.results = @current_results
                    @saved_data.metadata =


                    # Successful query, let's save it in the history
                    @save_query @raw_query

            return get_result_callback

        evaluate: (query) =>
            "use strict"
