Bug fixes

- fixed an issue where the last history item would not be displayed
when restoring the app state (issue #19)
- fixed an issue where the last app state property wasn't restored
properly (issue #20)