Script loading error fix