Fixed error in script load order