fixed dmg problem