Fix loading scripts