Fixed crashes in some samples on pre HC devices