Added fix for pear in old ubuntu