Fix bug: recording on two device at same time cause output strange