Added fix for scripts not working locally