minor fixes to component-factorial code