fix error on empty library