Fixed some errors in scripts