Fix https://github.com/sharpdx/SharpDX/issues/236