closed vertex bug fix