fix problems with pivpav library