Fixing libarie problems