fix a bug in multi-line-dp