Fixed error in views