avoids NPE in Library