Fix bugs in script