fix a error method