Fixed a view script error