Made query string global. Fixed possible unban overflow in thinker.