Fix bug of update config