Fix issue #135: Use apply(), not commit() for preferences - plus code
review details