fix for content deletion bug