Fixed bug with view files