Fixing the view dereferencing