Fix output margin errors