is switchdoor 01 valid? Perhaps its a null reference? Add an isValid node before it and print out a message if it is empty.