Fixed a bug in collection's 'clear' method