libraries bugfix