Another workaround to keep %inv magics alive.