lib bug fixed