fixed factorial 0 case