Fix relative view not getting deleted