Fixes crash when click on summary.

- Fixes issue #2 and fixes issue #3