bugfixes in create_media