fixed script load order