fix error in view