fixing AdvancedView constructor error