WiFi shield connect only after re-upload sketch

hello i wrote program that should get ssid and password from file on sd card that attached to the wifi shield and connect with this information to my wifi, every thing work fine but only when i upload the sketch,

so if i connect the arduino with serial cable to the computer with the sketch on it already and not re-upload it the wifi shield dont even try to connect (even the error led on the shield doesnt turn on)

is it a known issue?