Fix up various mode and attribute parameters.