Fixed crashes in cinematic code