fixed content delete foreign key constraint violation