Updated library to fix some bugs.