fix bad argument to errorf