fix openInBrowser directive