fix potential crash when reading a linked staff