fixed regenerate key line for settings