fixing bugs.
Fixing corrupeted lib.