Merge pull request #1727 from pickupman/bugfix-loader-view_file

Fix bug #1000