Bugfix in propreties restore