fixed issue when existing lib used