Fixed figure handling in debug output