Fixed #198 Creating a new media file crashes