update library and fix