fixed bug in vertex._activate