Fixed revision number retrieval.