bugfix save library