Fixed bug in rtmp