fixed library bug