fix bad errors reference