Bug fixing in the rtmp support