fixing variable in script

old variable was in place which was causing script to fail