[lib] bugfix