fix wrong variable name which was causing a bug when debug was on
Merge pull request #150 from MarkVillacampa/master

Fixed a crash when debugging a view