fix share dialog
fix sharing dialog for gallery