Ah, bugger. I believe what's happening is that the item-switch script interrupts the script which is supposed to reset the doors. Thanks for the bug report!