Fix for red5-server issue 40