fix gallery context menu sanction