Fixed small bug in n_factor_pp1.