Prevent clear resources.