Fixed error in view.