Fixed bug that caused script to crash