static library bug fixed