Fix minor bug in readCheatFile()

- This bug won't cause any trouble unless you use the minimal YAML example or smaller.