correcting DWORD error