Fixed broken 'click-to-open-snippet' functionality