Removed call to this_x in encode_fn of both reduce_SdA scripts.