bugfix in view