fixed clearing issue