Fix bug to avoid closing opened views.