Fixed the bug of lib