fix bug in get_unique_medium_name
Merge branch 'master' into RELEASE_20140325