view code bugfix