fixed the script mapping to tokens