Fixed bug preventing scripts from executing