Fixed crashes in games with no sram & added debug flag