A shim is a stopgap for most folks until the gun can be properly repaired if the cost of repair is warranted by the value of the gun.