Fix crash during auto configuration