Fix bug with attachment views.