Fix the Effect class for PSMobile

Due to the lastest changes, the PSMobile version was broken. This PR fix the Effect class and make it work again.