change dm-lc.c a bit and tested