Fixed clean script, which was not working properly