fix crashes in mira