fixed bugs for dv and merged ls