added potential fix for objectremoval error-issue