fix finding incorrect old revision