Fix for pear errors