only read sidsToHide when needed

fixes regression in unit tests