bug fix: handle the empty file when write to ARM