When did Pinocchio discover that he was made of wood?

When his hand caught fire.