Fix saving and creating issues in library.