Corrected error in views