fix auto-format settings bug