Bug fixes and libraries updates