Fix bug in media example