fix some contention in rtmp