fix contract vertices