fixing bugs in fpr