Sometimes sd card does not work

Hello, I have a teensy 2.0 and a teensy 2.0++ and sometimes the sd card doesnot work, here it's the source code for init the sd card:

if (!SD.begin(chipSelect)) {
      //Error initializing SD card
      Serial.println("ERR:init SD");
}