Avoid crashes on broken configurations