dm buffer bugfix