fixed mac error