Fixed broken click-to-open functionality. Fixes #3