Resolving the “wrong network” error