fix respondig with error method name