replace 0 as SD_OK