fix diamond-inversion (thx divip)