Fix library getting extra objects.