Bug in C++ API: Unable to save script library

This is the code:

LNDatabase db;

LNScriptLibrary lib;

session->GetDatabase(dbname,&db,server);

db.GetScriptLibrary(“MyLib”,LNSCRIPTLIBRARYTYPE_UNKNOWN,&lib);

lib.Open();

lib.Save();

This code always throws up the error on Save():

“Script library with the specified name and type already exists”

Subject: Bug in C++ API: Unable to save script library

I think this is a bug of the toolkit.But it has been over 1 year. Why IBM Lotus team still not solve this bug or give us an other solution?