This should fix the bugs introduced by my last commit please retest the games that where showing graphical glitches.