fix range stuff for npc commands in baton