BSMANAGE: Fixed minor bug in ifelse conditions when optimal = successes and average_pr is specified