Fixed problem that stopped complete script from executing