Fixed crash in example project