Fix script load order