Fixed bug in restore from config change