corrects mac error