Fix load script after link