Fix using sandbox domain when it should use production domain.

Sandbox mode was using production domain and vice-versa.