fixed library save