Fixed a ClassCastException
Merge pull request #3107 from dominikl/projection_view_bugfix

Bugfix for Projection view