Fixed bug where script wouldn't start