Fix script loading problem