Fixed revision check