Bug fix for library dependency