Fix in revision checking