fixed bug which prevented the erease of the clearBox