http://qs321.pair.com?node_id=1214751


in reply to Variable declared in script, used by module, and used in script

You could replace qq with qx and have it work as you expected it to.