fix lib issues