Bug fix: k-factor script (up down combination)