Solved library disposing problem