Fix for 0x6 cheats

Possible fix for certain 0x6 cheats causing crashing. Please test it out for those who have it.