If you upgrade a room and then change it to a room type with a low level cap (say, converting a level 8 lab into a level 8 spike trap) it'll bug the room out making it impossible to assign units to that room and canceling the effect of that room.