Fixed a bug in RTP module