Fix bug where the foldcount was passed in as the pullfactor

Just a small bug I found while playing around with the demo project.

Cheers,
Bart