fixed error in view