(Tried to) fix the opening panel bug on Share action