Correcting some errors in views classes