Fix the crash for some games.

Tested with Phantasy Star Portable 2 Infinity.