fix: return 0 when failed to read_w/write_2