fixed debugbox for 3.5