Fix use of pfd instead of the idata structure