fix seg in new media code