fix a comm.write.table bug