Bug fix for viewPath