fix shim bug