Hartley rallies to beat Koehler