Correcting some errors in view classes