The Fried conjecture in small dimensions