fix clearing element display