addsyndrome fix

Fix for a bug in the addsyndrome script