to fixup the bugs and will ok with D3Ddemo10