Fixed bug with share dialog