Fixes an issue where the share modal wouldn't open.