Fix error condition (which,... would not happen under current API).