Fixed XFade script