Fix the clear method for mongo failures.