Fix DWM bugs.