fixed vertex connection check