fix bug where no unique media exists after filtering
reorder