Fixed error on view/index