Fix errors in views folder