add HDEF _DSM fix