Fixed a bug in reading the revision number.