Fixes options being lost when using `shim`.