fix config and settings bug