Fix issue#7 (API change in potr)