fix a bug in script due to renaming