Fixed some errors with sentiment state restoring and dictionary loading.