Fixed library script bug.