repair error in view