Avoid seg fault with error message