fix for multiple media items and other cleanup deletions