fixed bug shared from popup not working