Fixed bug with reset

Implemented Clear