Fix scripts loading ordering