Fixed lib bugs.

Signed-off-by: Vallle <seifer_50@hotmail.com>