fixed lib errors