Fixed concatenate_code