fix missing script in reg