Bug fix.

Now the fitted version produces valid PDTs