Fix issue #119

Backing up the settings would throw an exception. A brief explanation
is provided here: http://stackoverflow.com/a/10338737