         # The size of the history is infinite per session. But we will just save @size_history queries in localStorage
         save_query: (args) =>
             query = args.query
-            broken = args.broken
+            broken_query = args.broken_query
             # Remove empty lines
             query = query.replace(/^\s*$[\n\r]{1,}/gm, '')
             if query[query.length-1] is '\n' or query[query.length-1] is '\r'

                @results_view.render_error(@query, error)
                @save_query
                    query: @raw_query
                    broken: true
                return false

            if data isnt undefined

                    # Successful query, let's save it in the history
                    @save_query
                        query: @raw_query
                        broken_query: false
            else
                @execute_portion()

