Fixed NA issue in script creator