fixed restoring config