Fix write value failed bugs under android.