removes ghost stuff in views.