fixed $window reference in camera