fix revision matching