             @codemirror.setCursor @codemirror.lineCount(), 0
             if @codemirror.getValue() is '' # We show suggestion for an empty query only
                 @handle_keypress()
-            @results_view.init_after_dom_rendered()
+            @results_view_wrapper.init_after_dom_rendered()
 
             @draft = @codemirror.getValue()
 

                    rdb_query = @evaluate(full_query)
                catch err
                    if @queries.length > 1
                        @results_view.render_error(@raw_queries[@index], err, true)
                    else
                        @results_view.render_error(null, err, true)

                    @save_query
                        query: @raw_query

            if /^(Unexpected token)/.test(error.message) # ATN: test that this is handled correctly
                # Unexpected token, the server couldn't parse the protobuf message
                # The truth is we don't know which query failed (unexpected token), but it seems safe to suppose in 99% that the last one failed.
                @results_view_wrapper.render_error(null, error)

                # We save the query since the callback will never be called.
                @save_query
