fixed clearing problem