Fixed bug in parallelogram pdf func