Fixed a bug in vertex emitter (untile we move to t_vertex.c)