Fixed some error narfing the script.