fix for the debug draw and more struct copy back fixes.