Fixed crash in the example.