Apply fix from Ipy3 for sharing mode