Fix for type bug on variable 'view'