Reverted the previous change as it broke a lot more then it should have.
Fixed a bug where the incorrect revision was being returned.