Bugfix about deleted elements.