fix revision check