fix bad errors