Clear global variable common._boxes between calls, small cleanup