output library bug fixed