Fixing the script loading