Update library to 1.3.4 and fix #46