Fix autocomplete and view.render method