Fixed error setting maximum number of SVs in host buffers.
Fixed a bug causing the number of secondary vertices to exceed the maximum allocated in the host buffers.
Fixed a bug causing the number of secondary vertices to exceed the maximum allocated in the host buffers.