Ok, so the nshort_draw procedure works IF I open the wizard config window AND close it before calling the command. If I start magic and try the command directly, doesn't work. If I open the wizard and try the command while it's still open, doesn't work. If I then close the wizard and retry, then it works.