fix clearing issue