Fixed texture and script loading