fix the bug that client can not write the sdcard