fixed wrong echo of error