Fix duplicate check on media browse