Fixed bug where fpr <= 0 caused incorrect behavior