Fixed allocation of vertex data, hopefully. See #675 and #676