Fixes cloning issue in character sample.