Fix for viewfiles