Fix scripts loading