Revert CSS style changes when destroying