Fix revision ranges