fixed library manager null reference