Finalized fix for scripts

Hopefully...