Fixed an error saying that the SD card is readonly even if it isn't.