Fixed two faults in the C samples.