Fixed a problem, where clear() resulted in a endless-loop.