Fixed scripts loading