Fixes wrong thisScript value