fix old script