Avoid headless exception.