Fix a bug in the scode assembler