Whatever you ran into, it’s a bug, and not your bug. I can’t speculate on what it is though.
Also, if you want some code that will do the X LIBRARY trick for every room, I have a snippet I got from otistdog that I use in my games: Overly elaborate looking - #2 by otistdog