Fixed debug crashing on terminal too small