Bug fix for wrong media type