Trying to find bug with SD card write