read/write fix [descriptor problem]