fixed bug with clean