fixed dgw and blank bug