fixed bug that prevented the script from running