Fixed error in estimate_reliability