Added check for stl corruption