More fixes about when a library content is empty.