fix criteria update for m2m