Fixed adding of media_source in properties of new resource.