Fixed bug creating datachannel (wrong type of period)