kerpercep: Fixed an error in calculating the FP, FN, error rate