fix clearing