Library compatibility fix