fixed update styles to ensure it always clears