Your common freewheeling diode pin should be tied to the supply voltage of the load. In this case 12 volt supply of your buzzer or whatever you have. Also with these make sure your MUC output is actually pulled low and not just tristate high. You may need to add pull down resistors.