fixing lib errors