fixes #1

Fixed a bug which prevented preferences from reverting