Fix bug for changing views.