Clearing algo#9

Fix #9