Mecwerks-Logic: Fixed a bug and reverted some accidental changes.