Made 'dm' display correctly with good number of lines