Fixing mode setting.