fixed script file loader problem