Bug in library