lastLibrary - fixed bugs