multi-program file bug fix