Fixed lib errors