Fix core script.