bug in vertex definition